package com.qf.air.mapper;

import com.qf.air.entity.Air;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @Author: 维多利加
 * @Date: 2021/3/20 10:04
 */
@Repository
public interface AirMapper {

    //根据区域Id查询空气质量信息
    List<Air> findByDistrictId(@Param("districtId")Integer districtId, @Param("monitoringStation")String monitoringStation, @Param("startTime")Date startTime, @Param("endTime")Date endTime);

    //添加空气质量信息
    Integer save(Air air);

    //根据id删除信息
    int deleteById(Integer id);

    //修改信息
    int updateById(Air air);
}
